package org.jackysoft.struts2.myapp;
import java.util.Collection;

import javax.annotation.Resource;

import org.jackysoft.entity.PrintJournal;
import org.jackysoft.service.PrintJournalService;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.jackysoft.struts2.UtilsCRUDAction;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;



@Namespace("/printjournal")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class PrintJournalAction extends UtilsCRUDAction<PrintJournal> {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6696127025970961315L;
	private PrintJournalService service;
	private PrintJournal bean;
	private Collection<PrintJournal> beans;	
	
	
	
	
	
	
	public void setBean(PrintJournal bean){
	     this.bean = bean;
	}
	public PrintJournal getBean(){
	     return this.bean;
	}
	public void setBeans(Collection<PrintJournal> beans){
	
	     this.beans = beans;
	}
	public Collection<PrintJournal> getBeans(){
	     return this.beans;
	}
	
	@Resource
	public void setService(PrintJournalService service) {
		this.service = service;
		this.setDataProvider(service);
	}	
	
	public PrintJournalService getService(){
	   return this.service;
	}
		
}